package xyz.supercode.tips;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class NodeService {

    @Autowired
    NodeRespostory nodeRespostory;

    public Node findById(Integer id) {
        return nodeRespostory.findById(id).get();
    }


    public Node save(Node node) {
        return nodeRespostory.save(node);
    }



}